home *** CD-ROM | disk | FTP | other *** search
- Path: news.sinaps.ru!newsserv
- From: "Dmitry Y. Pugachev" <ivl@npn-price.pskov.su>
- Newsgroups: comp.lang.c++
- Subject: Preprocessor derectives is insufficient for me
- Date: 1 Apr 1996 21:13:35 +0400
- Organization: N-P-N
- Sender: newsserv@news.sinaps.ru
- Distribution: world
- Message-ID: <ABY08OnW53@npn-price.pskov.su>
- Reply-To: ivl@npn-price.pskov.su
- NNTP-Posting-Host: sinaps.pskov.su
- X-Return-Path: npnp!npn-price.pskov.su!ivl
-
- Hello all!
-
- Just look at this code
-
- #define DECLARE_CLASS(first_class,second_class,name_class) \
- class name_class : virtual public first_class , virtual public second_class \
- { \
- public: \
- name_class(); \
- ~name_class(); \
- public: \
- virtual base* operator&(classA&) \
- virtual base* operator&(classB&) \
-
- . . .
-
- virtual base* operators&(classN&) \
- };
-
- I have to filter some operations I don't need in specific name_class.
- But a compiler don't allow to use #if in another #define statement :(
-
- May be there is a way to solve my problem ?
-
-
-
-